<form name="frmSearch" id="frmSearch" action="" onsubmit="javascript:return actionSearch();" method="get" enctype="multipart/form-data">
	<input type="hidden" name="pcancel" id="pcancel" value="0" />
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="search">
        <tbody>
            <tr>   
            	<td width="25%">
                	<label>Loại trường</label>
                    <select id="cate" name="cate" onchange="this.form.submit();">
                    	<option value="">Tất cả</option>
                    	{html_options options=$arrCategory selected=$smarty.session.edupost.cate}
                    </select>
                </td>
                <td width="25%">
                    <label for="opt">Tìm theo:</label>
                    <select name="opt" id="opt">                        
                        {if isset($smarty.session.edupost)}
                            {html_options options=$arrOption selected=$smarty.session.edupost.opt}
                        {else}
                            {html_options options=$arrOption}
                        {/if}
                    </select>
                </td>
                <td width="25%">
                    <label for="key">Từ khóa:</label>
                    <input type="text" name="key" id="key" value="{if isset($smarty.session.edupost)}{$smarty.session.edupost.key|escape}{/if}" maxlength="50"/>
                </td>                
                <td width="25">
                    <label for="startdate">Ngày đăng:</label>
                    <input type="text" name="startdate" id="startdate" value="{if isset($smarty.session.edupost)}{$smarty.session.edupost.startdate|escape}{/if}" class="half first" autocomplete="off"/>
                    <input type="text" name="enddate" id="enddate" value="{if isset($smarty.session.edupost)}{$smarty.session.edupost.enddate|escape}{/if}" class="half" autocomplete="off"/>
                </td>            
            </tr> 
            <tr>
            	
                <td>
                	<label>Tỉnh/thành</label>
                    <select id="prov" name="prov" onchange="this.form.submit();">
                    	<option value="">Tất cả</option>
                    	{html_options options=$arrProvince selected=$smarty.session.edupost.prov}
                    </select>
                </td>
                <td>
                	<label>Quận/huyện</label>
                    <select id="dist" name="dist" onchange="this.form.submit();">
                    	<option value="">Tất cả</option>
                    	{html_options options=$arrDistrict selected=$smarty.session.edupost.dist}
                    </select>
                </td>
                <td>                   
                    <button type="submit" class="search">Tìm kiếm</button>
                    {if isset($smarty.session.educancel) && $smarty.session.educancel == 1}   
                    	<button type="button" onclick="javascript:cancelSearch(this.form);" class="search">Thôi tìm kiếm</button>  
                    {/if}
                </td>
            </tr>
        </tbody>
    </table>
</form>